package student.aistar.day09;

public class StringBuilderDemo {
    public static void main(String[] args) {

        StringBuilder builder = new StringBuilder();
        System.out.println(builder.capacity());//16 - 默认的容量
        System.out.println(builder.length());

        StringBuilder x = new StringBuilder("abc");//capacity = 16 + 3
        x.append("def");
        x.append("123sadasdkasdsaodjasd");
        System.out.println(x.capacity());
        System.out.println(x.length());
    }
}
